<?php

/**
 * 微信辅助类，一些常用的工具放在这里
 * @author wangnai <lovebing365@126.com> Created on 2015-4-12
 */
class WechatHelper {

            
            

    /**
     * 
  
     */
    public function __construct( ) {
            
    }
    
    public static function sendWxTxtMsg($com_id,$openid,$msg){
    	$pubs = Pubs::getModelById($com_id) ; 
        $res = Wechat::getAccessToken($pubs->cusid, $pubs->cussec) ;	
        return Wechat::sendTxtMsg($res['access_token'], $openid, $msg); 
    }
   
}
